<?php
namespace Index\Controller;

class SinglepageController extends SystemController {
	
	public function index() {
        $sid =$_GET['sid'];
        $singlepage = D('singlepage')->where(array('wid'=>$this->where_wid,'id'=>$sid))->find();
        D('singlepage')->where(array('wid'=>$this->where_wid,'id'=>$sid))->setInc('view',1);
        $this->assign('sg',$singlepage);
		$this -> display('page');
	}

    public function lxwm(){
        $sid =$_GET['sid'];
        $singlepage = D('singlepage')->where(array('wid'=>$this->where_wid,'id'=>$sid))->find();
        //D('singlepage')->where(array('wid'=>$this->where_wid,'id'=>$sid))->setInc('view',1);
        $this->assign('sg',$singlepage);
        $this -> display('Contact');
    }

}
